/*
 * Copyright (c) 2022  by Junzhao
 * THIS FILE IS PART OF JAVASE Song Huongkang PROJECT
 * All Rights Reserved.
 */

package 练习;

import org.junit.Test;

public class test03 {
    public static void main(String[] args) {

        test03 t1 = new test03();//!!!!!!!!!可以这样用！

        t1.method1();
        System.out.println();

        System.out.println(t1.method2());
        System.out.println();

        System.out.println(t1.method3(2,3));
        System.out.println();

    }
    @Test
    public void method1(){
        for (int i =0;i<8;i++){
            for (int j =0;j<10;j++){
                System.out.print("* ");
            }
            System.out.println();
        }
    }
    public int  method2(){
        method1();
        return 10 * 8;
    }
    public int  method3(int m,int n){
        for (int i = 0; i<m; i++){
            for (int j =0;j<n;j++){
                System.out.print("* ");
            }
            System.out.println();
        }
        return m*n;
    }
}
